package cn.zktr.Personnel.model.service.ouyangpeng;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zktr.Personnel.model.dao.ouyangpeng.RetWenDao;
import cn.zktr.Personnel.model.pojos.PerRetDem;
import cn.zktr.Personnel.model.pojos.PerRetWAlt;
import cn.zktr.Personnel.model.pojos.PerRetWen;

@Service
@Transactional(rollbackOn=Exception.class)
public class RetWenService {
	@Autowired
	private RetWenDao retwendao;
	
	public Iterable<PerRetWen> selectWenAll(){
		return retwendao.findAll();	
	}
	//笔试结束
	public void selectwenjiehsu(Integer mianshi_wen) {
	  	PerRetWen wenid=retwendao.findById(mianshi_wen).get();
	  	wenid.setWenqld("3");
		retwendao.save(wenid);
	}
}
